/*
 * 早期版本有live
$(".layout_header,.layout_header_noborder").live("mouseover mouseout",
		function(event) {
			if (event.type == "mouseover") {
				$('.layout_zoom', this).show();
			} else if (event.type == "mouseout") {
				$('.layout_zoom', this).hide();
			}
		});
$(".layout_zoom").live(
			"mouseover mouseout click",
			function(event) {
				if (event.type == "click") {
					var o=$(this);
					var con = o.parent().parent().parent();
					var m_obj = $('.layout_middle,.layout_middle_noborder', con);
					var f_obj = $('.layout_footer,.layout_footer_noborder', con);
					var dis = m_obj.css('display');
					f_obj.slideToggle('fast');
					m_obj.slideToggle("fast", function() {
						if ('none' != dis) {
								o.removeClass('layout-tool-minus-over');
								o.addClass("layout-tool-plus-over");
						} else {
								o.removeClass('layout-tool-plus-over');
								o.addClass("layout-tool-minus-over");			
						}
					});	
				}
				if ($(this).hasClass("layout-tool-minus")
						|| $(this).hasClass("layout-tool-minus-over")) {
					if (event.type == "mouseover") {
						$(this).removeClass("layout-tool-minus");
						$(this).addClass("layout-tool-minus-over");
					} else if (event.type == "mouseout") {
						$(this).removeClass("layout-tool-minus-over");
						$(this).addClass("layout-tool-minus");
					}
				} else if ($(this).hasClass("layout-tool-plus")
						|| $(this).hasClass("layout-tool-plus-over")) {
					if (event.type == "mouseover") {
						$(this).removeClass("layout-tool-plus");
						$(this).addClass("layout-tool-plus-over");
					} else if (event.type == "mouseout") {
						$(this).removeClass("layout-tool-plus-over");
						$(this).addClass("layout-tool-plus");
					}
				}
});
*/
$(document).on("mouseover mouseout",".layout_header,.layout_header_noborder",
		function(event) {
			if (event.type == "mouseover") {
				$('.layout_zoom', this).show();
			} else if (event.type == "mouseout") {
				$('.layout_zoom', this).hide();
			}
		});
$(document).on(
			"mouseover mouseout click",".layout_zoom",
			function(event) {
				if (event.type == "click") {
					var o=$(this);
					var con = o.parent().parent().parent();
					var m_obj = $('.layout_middle,.layout_middle_noborder', con);
					var f_obj = $('.layout_footer,.layout_footer_noborder', con);
					var dis = m_obj.css('display');
					f_obj.slideToggle('fast');
					m_obj.slideToggle("fast", function() {
						if ('none' != dis) {
								o.removeClass('layout-tool-minus-over');
								o.addClass("layout-tool-plus-over");
						} else {
								o.removeClass('layout-tool-plus-over');
								o.addClass("layout-tool-minus-over");			
						}
					});	
				}
				if ($(this).hasClass("layout-tool-minus")
						|| $(this).hasClass("layout-tool-minus-over")) {
					if (event.type == "mouseover") {
						$(this).removeClass("layout-tool-minus");
						$(this).addClass("layout-tool-minus-over");
					} else if (event.type == "mouseout") {
						$(this).removeClass("layout-tool-minus-over");
						$(this).addClass("layout-tool-minus");
					}
				} else if ($(this).hasClass("layout-tool-plus")
						|| $(this).hasClass("layout-tool-plus-over")) {
					if (event.type == "mouseover") {
						$(this).removeClass("layout-tool-plus");
						$(this).addClass("layout-tool-plus-over");
					} else if (event.type == "mouseout") {
						$(this).removeClass("layout-tool-plus-over");
						$(this).addClass("layout-tool-plus");
					}
				}
});